<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<div ng-app="myApp" ng-controller="myCtrl">
		<button ng-click="clickon">click me</button>
	</div>
	<script src="../js/angular165/angular.min.js"></script>
	<script>
		var app = angular.module("myApp",[])
		app.config(function($provide){
			$provide.value('greeting', function(name){
				console.log("Hello, ", name)
			})
		})
		app.controller("myCtrl",function($scope,greeting){
			$scope.text = greeting("test");
			console.log($scope.text)
		})
	</script>
</body>
</html>